﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//import
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;
using System.Web.ModelBinding;
using ddcCajamarca.BusinessLogic.AgendaCultural.Service;
using ddcCajamarca.BusinessEntities.AgendaCultural;

namespace ddcCajamarca.Web.AgendaCultural
{
    public partial class frmListAmbientes : System.Web.UI.Page
    {
        [Dependency]
        public IAmbienteBL ambienteBL { get; set; } 
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public IEnumerable<Ambiente> GetAmbiente([Control("txtCriterio")]string criterio)
        {
            return ambienteBL.GetAmbienteByCriterio(criterio);
        }
    }
}